FROM python:3.11.4-alpine3.18

LABEL maintainer="denismir423@gmail.com"
LABEL version="1.0"
LABEL description="form-service backend"

WORKDIR /usr/src/app

COPY requirements.txt ./
COPY .env ./
COPY privatekey.pem ./
COPY certificate.pem ./

RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# Открываю порт
EXPOSE 8000

CMD ["python", "./main.py"]
